export class Point {
    constructor(x, y){
        this.x = x;
        this.y = y;
        this.mark = false;
    }
    moveX(distance){
        this.x += distance;
    }
    moveY(distance){
        this.y += distance;
    }
}

export class Line {
    constructor(x1, y1, x2, y2){
        this.begin = new Point(x1, y1);
        this.end = new Point(x2, y2);
    }
}

export class Rectangle{
    constructor(x, y, width, height){
        this.beginPoint = new Point(x, y);
        this.width =width;
        this.height = height;
    }
}

export class Triangle {
    constructor(point1, point2, point3){
        this.point1 = point1;
        this.point2 = point2;
        this.point3 = point3;
    }
    moveX(distance){
        this.point1.x += distance;
        this.point2.x += distance;
        this.point3.x += distance;
    }
    moveY(distance){
        this.point1.y += distance;
        this.point2.y += distance;
        this.point3.y += distance;
    }
}

export class TextLabel {
    constructor({font, text, x, y}) {
        this.font = font;
        this.text = text;
        this.x = x;
        this.y = y;
    }
    moveX(distance){
        this.x += distance;
    }
    moveY(distance){
        this.y += distance;
    }
}